package com.tubi.String;
/*
* equals 判断是否相同
* equalsIgnoreCase  判断字符忽略大小写
* */
public class StringDemo4 {
    public static void main(String[] args) {
        String s1 = "ronglei";
        String s2 = "ronglei";
        String s3 = "Ronglei";

        System.out.println(s1.equals(s2));
        System.out.println(s1.equals(s3));

        System.out.println(s1.equalsIgnoreCase(s3));  //此判断忽略大小写
    }
}
